package server;

public class MemoryTest {
    public static void main(String[] args) {
        long[][] a = new long[10000][];
        Thread[] t = new Thread[10000];
        for(int i = 0; i < a.length; i++) {
            a[i] = new long[1000000];
            t[i] = new Thread() {
                @Override
                public void run() {
                    while(true) {}
                }
            };
            t[i].start();
            System.out.println(i);
//            try {
//                Thread.sleep(200);
//            } catch (InterruptedException e) {}
        }
    }
}
